Shaku is a compile time dependency injection library. It can be used directly or through
integration with application frameworks such as Rocket (see
shaku_rocket
).
Getting started
See the getting started guide
Crate features
By default shaku is thread-safe and exposes macros, but these can be disabled by opting out of the following features:
thread_safe
: Requires components to beSend + Sync
derive
: Uses theshaku_derive
crate to provide proc-macro derives ofComponent
andProvider
, and themodule
macro.